package com.nuoniu.sibanyun.mapper.crm;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.crm.WithdrawalRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 提现记录 Mapper 接口
 * </p>
 *
 * @author baiqiang
 * @since 2020-07-28
 */
@Mapper
@Component
public interface WithdrawalRecordMapper extends BaseMapper<WithdrawalRecord> {

    /**
     * 获取正在审核的记录
     * @author 小啊刚
     * @date 2020-07-29
     */
    @Select("select * from withdrawal_record where status != 0 and status != 3 and user_id=#{userId}")
    List<WithdrawalRecord> getListByStatus(Integer userId);
}
